package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._06原型模式._6简历5;

//工作经历类
class WorkExperience implements Cloneable {
    //工作时间范围
    private String timeArea;

    public String getTimeArea(){
        return this.timeArea;
    }

    public void setTimeArea(String value){
        this.timeArea=value;
    }

    //所在公司
    private String company;

    public String getCompany(){
        return this.company;
    }

    public void setCompany(String value){
        this.company=value;
    }


    @Override
    public WorkExperience clone() {
        try {
            WorkExperience clone = (WorkExperience) super.clone();
            // TODO: copy mutable state here, so the clone can't change the internals of the original
            return clone;
        } catch (CloneNotSupportedException e) {
            throw new AssertionError();
        }
    }

}
